using Google.ProtocolBuffers;
using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class SKBuiltinChar_t : GeneratedMessageLite<SKBuiltinChar_t, SKBuiltinChar_t.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<SKBuiltinChar_t, SKBuiltinChar_t.Builder>
		{
			private bool resultIsReadOnly;
			private SKBuiltinChar_t result;
			protected override SKBuiltinChar_t.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override SKBuiltinChar_t MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override SKBuiltinChar_t DefaultInstanceForType
			{
				get
				{
					return SKBuiltinChar_t.DefaultInstance;
				}
			}
			public int IVal
			{
				get
				{
					return this.result.IVal;
				}
				set
				{
					this.SetIVal(value);
				}
			}
			public Builder()
			{
				this.result = SKBuiltinChar_t.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(SKBuiltinChar_t cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private SKBuiltinChar_t PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					SKBuiltinChar_t other = this.result;
					this.result = new SKBuiltinChar_t();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override SKBuiltinChar_t.Builder Clear()
			{
				this.result = SKBuiltinChar_t.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override SKBuiltinChar_t.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new SKBuiltinChar_t.Builder(this.result);
				}
				return new SKBuiltinChar_t.Builder().MergeFrom(this.result);
			}
			public override SKBuiltinChar_t BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override SKBuiltinChar_t.Builder MergeFrom(IMessageLite other)
			{
				if (other is SKBuiltinChar_t)
				{
					return this.MergeFrom((SKBuiltinChar_t)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override SKBuiltinChar_t.Builder MergeFrom(SKBuiltinChar_t other)
			{
				return this;
			}
			public override SKBuiltinChar_t.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override SKBuiltinChar_t.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(SKBuiltinChar_t._sKBuiltinCharTFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = SKBuiltinChar_t._sKBuiltinCharTFieldTags[num2];
					}
					uint num3 = num;
					if (num3 == 0u)
					{
						throw InvalidProtocolBufferException.InvalidTag();
					}
					if (num3 != 8u)
					{
						if (WireFormat.IsEndGroupTag(num))
						{
							return this;
						}
						this.ParseUnknownField(input, extensionRegistry, num, text);
					}
					else
					{
						this.result.hasIVal = input.ReadInt32(ref this.result.iVal_);
					}
				}
				return this;
			}
			public SKBuiltinChar_t.Builder SetIVal(int value)
			{
				this.PrepareBuilder();
				this.result.hasIVal = true;
				this.result.iVal_ = value;
				return this;
			}
			public SKBuiltinChar_t.Builder ClearIVal()
			{
				this.PrepareBuilder();
				this.result.hasIVal = false;
				this.result.iVal_ = 0;
				return this;
			}
		}
		public const int IValFieldNumber = 1;
		private static readonly SKBuiltinChar_t defaultInstance;
		private static readonly string[] _sKBuiltinCharTFieldNames;
		private static readonly uint[] _sKBuiltinCharTFieldTags;
		private bool hasIVal;
		private int iVal_;
		private int memoizedSerializedSize = -1;
		public static SKBuiltinChar_t DefaultInstance
		{
			get
			{
				return SKBuiltinChar_t.defaultInstance;
			}
		}
		public override SKBuiltinChar_t DefaultInstanceForType
		{
			get
			{
				return SKBuiltinChar_t.DefaultInstance;
			}
		}
		protected override SKBuiltinChar_t ThisMessage
		{
			get
			{
				return this;
			}
		}
		public int IVal
		{
			get
			{
				return this.iVal_;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return this.hasIVal;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasIVal)
				{
					num += CodedOutputStream.ComputeInt32Size(1, this.IVal);
				}
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private SKBuiltinChar_t()
		{
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] sKBuiltinCharTFieldNames = SKBuiltinChar_t._sKBuiltinCharTFieldNames;
			if (this.hasIVal)
			{
				output.WriteInt32(1, sKBuiltinCharTFieldNames[0], this.IVal);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasIVal)
			{
				num ^= this.iVal_.GetHashCode();
			}
			return num;
		}
		public override bool Equals(object value)
		{
			SKBuiltinChar_t sKBuiltinChar_t = value as SKBuiltinChar_t;
			return sKBuiltinChar_t != null && (this.hasIVal == sKBuiltinChar_t.hasIVal && (!this.hasIVal || this.iVal_.Equals(sKBuiltinChar_t.iVal_)));
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<SKBuiltinChar_t, SKBuiltinChar_t.Builder>.PrintField("iVal", this.hasIVal, this.iVal_, writer);
		}
		public static SKBuiltinChar_t ParseFrom(byte[] data)
		{
			return SKBuiltinChar_t.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private SKBuiltinChar_t MakeReadOnly()
		{
			return this;
		}
		public static SKBuiltinChar_t.Builder CreateBuilder()
		{
			return new SKBuiltinChar_t.Builder();
		}
		public override SKBuiltinChar_t.Builder ToBuilder()
		{
			return SKBuiltinChar_t.CreateBuilder(this);
		}
		public override SKBuiltinChar_t.Builder CreateBuilderForType()
		{
			return new SKBuiltinChar_t.Builder();
		}
		public static SKBuiltinChar_t.Builder CreateBuilder(SKBuiltinChar_t prototype)
		{
			return new SKBuiltinChar_t.Builder(prototype);
		}
		static SKBuiltinChar_t()
		{
			SKBuiltinChar_t.defaultInstance = new SKBuiltinChar_t().MakeReadOnly();
			SKBuiltinChar_t._sKBuiltinCharTFieldNames = new string[]
			{
				"iVal"
			};
			SKBuiltinChar_t._sKBuiltinCharTFieldTags = new uint[]
			{
				8u
			};
			object.ReferenceEquals(SKBuiltinCharT.Descriptor, null);
		}
	}
}
